package com.daedalus.Polimorfizmi.InterfaceAbstractShape;

public class Square extends TwoDimensionalShape{

	public Square(double dim) {
		super(dim);
	}

	@Override
	public double getArea() {
		return getDimension()*getDimension();
	}
	public String toString(){
		return String.format("Object : Square  \n Brinja: %.2f",getDimension());
	}
}
